/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2023-11-04 08:24:49
 * @LastEditors: minglic minglic@foxmail.com
 * @LastEditTime: 2023-11-04 15:36:05
 * @FilePath: \go2023\core\entity\device.go
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
package entity

import "gorm.io/gorm"

type Device struct {
	gorm.Model
	Name   string `json:"name" gorm:"column:name"`     //设备名称
	Type   string `json:"type" gorm:"column:type"`     //设备类型
	Func   string `json:"func" gorm:"column:func"`     //设备功能
	SiteId string `json:"siteId" gorm:"column:siteId"` //所属的泵站ID
}

func (*Device) TableName() string {
	return "device"
}
